package com.ffyc.ssm.service;

import com.ffyc.ssm.dao.NewsTypeDao;
import com.ffyc.ssm.modle.Ad;
import com.ffyc.ssm.modle.NewsType;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

@Service
public class NewsTypeService {
    @Autowired
    private NewsTypeDao dao;


    public List<Ad> findList(NewsType newsType) {
        return dao.findList(newsType);
    }

    public void save(Map map) {
         dao.save(map);
    }

    public void delete(Integer id) {
        dao.delete(id);
    }

    public NewsType findNewsType(Integer id) {
        return dao.findNewsType(id);
    }

    public void update(Map<String, String> map) {
        dao.update(map);
    }
}
